home *** CD-ROM | disk | FTP | other *** search
/ An Introduction to Progr…l Basic 6.0 (4th Edition) / An Introduction to Programming using Visual Basic 6.0.iso / PROGRAMS / CH7 / 7-1-6.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-09-21  |  1.7 KB  |  58 lines

  1. VERSION 5.00
  2. Begin VB.Form frm7_1_6 
  3.    Caption         =   "Last  Three  Chief Justices"
  4.    ClientHeight    =   960
  5.    ClientLeft      =   2208
  6.    ClientTop       =   2316
  7.    ClientWidth     =   3924
  8.    BeginProperty Font 
  9.       Name            =   "MS Sans Serif"
  10.       Size            =   7.8
  11.       Charset         =   0
  12.       Weight          =   700
  13.       Underline       =   0   'False
  14.       Italic          =   0   'False
  15.       Strikethrough   =   0   'False
  16.    EndProperty
  17.    LinkTopic       =   "Form1"
  18.    PaletteMode     =   1  'UseZOrder
  19.    ScaleHeight     =   960
  20.    ScaleWidth      =   3924
  21.    Begin VB.CommandButton cmdShow 
  22.       Caption         =   "&Show Chief Justices"
  23.       Height          =   495
  24.       Left            =   120
  25.       TabIndex        =   1
  26.       Top             =   120
  27.       Width           =   1695
  28.    End
  29.    Begin VB.PictureBox picOutput 
  30.       Height          =   735
  31.       Left            =   1920
  32.       ScaleHeight     =   684
  33.       ScaleWidth      =   1764
  34.       TabIndex        =   0
  35.       Top             =   120
  36.       Width           =   1812
  37.    End
  38. Attribute VB_Name = "frm7_1_6"
  39. Attribute VB_GlobalNameSpace = False
  40. Attribute VB_Creatable = False
  41. Attribute VB_PredeclaredId = True
  42. Attribute VB_Exposed = False
  43. 'Create array to hold three strings.
  44. Dim chiefJustice(13 To 15) As String
  45. Private Sub cmdShow_Click()
  46.   Dim i As Integer
  47.   'Display Chief Justices
  48.   For i = 13 To 15
  49.     picOutput.Print chiefJustice(i)
  50.   Next i
  51. End Sub
  52. Private Sub Form_Load()
  53.   'Fill array with names of Chief Justices
  54.   chiefJustice(13) = "Earl Warren"
  55.   chiefJustice(14) = "Warren Burger"
  56.   chiefJustice(15) = "William Rehnquist"
  57. End Sub
  58.